package com.study.design.model.structPattern.flyWeight;

/**
* @Name: Coordinate
* @Description: 外部状态——非共享享元类：棋子坐标位置
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-2-15 下午2:35:40 
* @Version: V1.0
 */
public class Coordinate {
	
	private int x, y ;
	
	public Coordinate(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	@Override
	public String toString() {
		return "Coordinate [x=" + x + ", y=" + y + "]";
	}
	
}
